
package com.jf.cloud.supplier.feign;

import com.jf.cloud.api.supplier.feign.SupplierUserFeignClient;
import com.jf.cloud.common.response.ServerResponseEntity;
import com.jf.cloud.supplier.service.SupplierUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.v3.oas.annotations.Hidden;

/**
 * @author zz
 * @date 2022/7/13 15:38
 */
@RestController
@Hidden
public class SupplierUserFeignController implements SupplierUserFeignClient {

    @Autowired
    private SupplierUserService supplierUserService;

    @Override
    public ServerResponseEntity<Integer> countAccoutByMobile(String mobile) {
        return ServerResponseEntity.success(supplierUserService.countAccoutByMobile(mobile));

    }
}
